package cn.com.surker.production.dao;

import cn.com.surker.oa.entity.OaProductionContract;
import cn.com.surker.production.entity.PumpConDevice;
import cn.com.surker.production.entity.PumpDevice;
import cn.com.surker.production.entity.vo.PumpConDeviceVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 泵送合同关联设备表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-09-04
 */
public interface PumpConDeviceDao extends BaseMapper<PumpConDevice> {


	/**
	 *	查询设备关联的合同列表
	 * @param orgId
	 * @param devId
	 * @return
	 */
	List<OaProductionContract> findConList(Long orgId, Long devId);

	/**
	 * 分页查询泵车信息
	 * @param page
	 * @param searchVal
	 * @param contractId
	 * @param status
	 * @param <E>
	 * @return
	 */
	<E extends IPage<PumpConDeviceVo>> E findPageVo(E page, String searchVal, Long contractId, Integer status);

}
